<!-- 复制弹窗、仅复制操作失败的时候显示让用户手动复制 -->
<div class="am-modal am-modal-no-btn" tabindex="-1" id="parameters-quick-copy-modal">
    <div class="am-modal-dialog">
        <div class="am-modal-hd">
            <a href="javascript: void(0)" class="am-close" data-am-modal-close>&times;</a>
        </div>
        <div class="am-modal-bd">
            <div class="am-padding-sm">
                <textarea rows="5" placeholder="商品参数配置信息"></textarea>
            </div>
        </div>
    </div>
</div>

<!--表列表数据 -->
<div class="parameters-container am-margin-top-sm">
    <table class="am-table am-table-bordered am-table-centered am-table-striped am-table-hover am-margin-bottom-sm parameters-table table-thead-beautify am-margin-bottom-0" 
        data-copy-success-tips="复制成功" 
        data-copy-no-tips="请先粘贴配置信息" 
        data-copy-error-tips="配置格式错误" 
        data-copy-empty-tips="配置为空" 
        data-created-success-tips="生成成功" 
        data-type-all-name="全部" 
        data-type-base-name="基础" 
        data-type-detail-name="详情" 
        data-type-message="请选择商品参数展示类型" 
        data-params-name="参数名称" 
        data-params-message="请填写参数名称" 
        data-value-name="参数值" 
        data-value-message="请填写参数值" 
        data-move-top-name="上移" 
        data-move-bottom-name="下移" 
        data-remove-name="移除" 
        data-move-type-tips="操作类型配置有误" 
        data-move-top-tips="已到最顶部" 
        data-move-bottom-tips="已到最底部" 
        data-copy-success-tips="复制成功" 
    >
        <thead>
            <tr>
                <th class="spec-quick-th-title">展示范围</th>
                <th class="spec-quick-th-title">参数名称</th>
                <th class="spec-quick-th-value">参数值</th>
                <th class="spec-quick-th-value">操作</th>
            </tr>
        </thead>
        <tbody>
            {{if !empty($parameters) and is_array($parameters)}}
                {{foreach $parameters as $pv}}
                    <tr>
                        <td class="am-text-middle">
                            <select name="parameters_type[]" class="am-radius chosen-select" data-validation-message="请选择商品参数展示类型">
                                {{if !empty($common_goods_parameters_type_list)}}
                                    {{foreach $common_goods_parameters_type_list as $v}}
                                        <option value="{{$v.value}}" {{if $pv['type'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
                                    {{/foreach}}
                                {{/if}}
                            </select>
                        </td>
                        <td class="am-text-middle">
                            <input type="text" name="parameters_name[]" placeholder="参数名称" value="{{$pv.name}}" data-validation-message="请填写参数名称" maxlength="160" required />
                        </td>
                        <td class="am-text-middle">
                            <input type="text" name="parameters_value[]" placeholder="参数值" value="{{$pv.value}}" maxlength="160" data-validation-message="请填写参数值" />
                        </td>
                        <td class="am-text-middle">
                            <a href="javascript:;" class="am-text-xs am-text-secondary am-margin-right-sm line-move" data-type="top">上移</a>
                            <a href="javascript:;" class="am-text-xs am-text-secondary am-margin-right-sm line-move" data-type="bottom">下移</a>
                            <a href="javascript:;" class="am-text-xs am-text-danger line-remove">移除</a>
                        </td>
                    </tr>
                {{/foreach}}
            {{/if}}
        </tbody>
    </table>
</div>
<div class="am-margin-top-sm">
    <span class="business-operations-submit parameters-line-add">+添加一行</span>
</div>